package com.ibm.cloud.banking.account.repository;

import com.ibm.cloud.banking.account.entity.AccountTransDetail;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IAccountTransDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccountTransDetail record);

    int insertSelective(AccountTransDetail record);

    AccountTransDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AccountTransDetail record);

    int updateByPrimaryKey(AccountTransDetail record);

    int getAcctTransDetailNextSeq(String accountNo);

    AccountTransDetail getByTansNoAndAcctNo(@Param("transNo") String transNo, @Param("accountNo")String accountNo);

    int deleteByTansNoAndAcctNo(@Param("transNo") String transNo, @Param("accountNo")String accountNo);

}